using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN CTTinhDiemMonHocService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: CTTinhDiemMonHocService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class CTTinhDiemMonHocService : ICTTinhDiemMonHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: CTTinhDiemMonHoc_ID</para>
		/// <para>Output: CTTinhDiemMonHocEntity</para>
		///</summary>
		public CTTinhDiemMonHocEntity SelectOne(int CTTinhDiemMonHoc_ID){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.SelectOne(CTTinhDiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaCTTinhDiem</para>
		/// <para>Input: MaCTTinhDiem</para>
		/// <para>Output: CTTinhDiemMonHocEntity</para>
		///</summary>
		public CTTinhDiemMonHocEntity SelectOneByMaCTTinhDiem(string MaCTTinhDiem){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.SelectOneByMaCTTinhDiem(MaCTTinhDiem);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CTTinhDiemMonHocEntity</para>
		///</summary>
		public List<CTTinhDiemMonHocEntity> SelectAll(){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of CTTinhDiemMonHocEntity</para>
		///</summary>
		public List<CTTinhDiemMonHocEntity> SelectAllFilter(string strFilter){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: CTTinhDiemMonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(CTTinhDiemMonHocEntity o){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: CTTinhDiemMonHocEntity</para>
		/// <para>Output: CTTinhDiemMonHocEntity</para>
		///</summary>
		public CTTinhDiemMonHocEntity SaveRet(CTTinhDiemMonHocEntity o){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of CTTinhDiemMonHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<CTTinhDiemMonHocEntity> list){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of CTTinhDiemMonHocEntity</para>
		/// <para>Output: List of CTTinhDiemMonHocEntity</para>
		///</summary>
		public List<CTTinhDiemMonHocEntity> SaveListRet(List<CTTinhDiemMonHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: CTTinhDiemMonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(CTTinhDiemMonHocEntity o){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of CTTinhDiemMonHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<CTTinhDiemMonHocEntity> list){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaCTTinhDiem</para>
		/// <para>Input: NewMaCTTinhDiem,CTTinhDiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaCTTinhDiem(string NewMaCTTinhDiem,int CTTinhDiemMonHoc_ID){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.UpdateMaCTTinhDiem(NewMaCTTinhDiem,CTTinhDiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenCTTinhDiem</para>
		/// <para>Input: NewTenCTTinhDiem,CTTinhDiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenCTTinhDiem(string NewTenCTTinhDiem,int CTTinhDiemMonHoc_ID){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.UpdateTenCTTinhDiem(NewTenCTTinhDiem,CTTinhDiemMonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSuDungMacDinh</para>
		/// <para>Input: NewSuDungMacDinh,CTTinhDiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSuDungMacDinh(bool NewSuDungMacDinh,int CTTinhDiemMonHoc_ID){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.UpdateSuDungMacDinh(NewSuDungMacDinh,CTTinhDiemMonHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: CTTinhDiemMonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(CTTinhDiemMonHocEntity o){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: CTTinhDiemMonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int CTTinhDiemMonHoc_ID){
			CTTinhDiemMonHocDAO dao = new CTTinhDiemMonHocDAO();
			return dao.DeleteByID(CTTinhDiemMonHoc_ID);
		}
		#endregion

		#region Select,delete by CTTinhDiemMonHoc_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END CTTinhDiemMonHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

